home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMCustomEvent.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  109 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMCustomEvent.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMCustomEvent_h__
  6. #define __gen_nsIDOMCustomEvent_h__
  7.  
  8.  
  9. #ifndef __gen_nsIDOMEvent_h__
  10. #include "nsIDOMEvent.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMCustomEvent */
  19. #define NS_IDOMCUSTOMEVENT_IID_STR "55c7af7b-1a64-40bf-87eb-2c2cbee0491b"
  20.  
  21. #define NS_IDOMCUSTOMEVENT_IID \
  22.   {0x55c7af7b, 0x1a64, 0x40bf, \
  23.     { 0x87, 0xeb, 0x2c, 0x2c, 0xbe, 0xe0, 0x49, 0x1b }}
  24.  
  25. /**
  26.  * The nsIDOMEventTarget interface is the interface implemented by all
  27.  * event targets in the Document Object Model.
  28.  *
  29.  * For more information on this interface please see 
  30.  * http://www.w3.org/TR/DOM-Level-3-Events/
  31.  */
  32. class NS_NO_VTABLE nsIDOMCustomEvent : public nsIDOMEvent {
  33.  public: 
  34.  
  35.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMCUSTOMEVENT_IID)
  36.  
  37.   /* void setCurrentTarget (in nsIDOMNode target); */
  38.   NS_IMETHOD SetCurrentTarget(nsIDOMNode *target) = 0;
  39.  
  40.   /* void setEventPhase (in unsigned short phase); */
  41.   NS_IMETHOD SetEventPhase(PRUint16 phase) = 0;
  42.  
  43. };
  44.  
  45. /* Use this macro when declaring classes that implement this interface. */
  46. #define NS_DECL_NSIDOMCUSTOMEVENT \
  47.   NS_IMETHOD SetCurrentTarget(nsIDOMNode *target); \
  48.   NS_IMETHOD SetEventPhase(PRUint16 phase); 
  49.  
  50. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  51. #define NS_FORWARD_NSIDOMCUSTOMEVENT(_to) \
  52.   NS_IMETHOD SetCurrentTarget(nsIDOMNode *target) { return _to SetCurrentTarget(target); } \
  53.   NS_IMETHOD SetEventPhase(PRUint16 phase) { return _to SetEventPhase(phase); } 
  54.  
  55. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  56. #define NS_FORWARD_SAFE_NSIDOMCUSTOMEVENT(_to) \
  57.   NS_IMETHOD SetCurrentTarget(nsIDOMNode *target) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCurrentTarget(target); } \
  58.   NS_IMETHOD SetEventPhase(PRUint16 phase) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEventPhase(phase); } 
  59.  
  60. #if 0
  61. /* Use the code below as a template for the implementation class for this interface. */
  62.  
  63. /* Header file */
  64. class nsDOMCustomEvent : public nsIDOMCustomEvent
  65. {
  66. public:
  67.   NS_DECL_ISUPPORTS
  68.   NS_DECL_NSIDOMCUSTOMEVENT
  69.  
  70.   nsDOMCustomEvent();
  71.  
  72. private:
  73.   ~nsDOMCustomEvent();
  74.  
  75. protected:
  76.   /* additional members */
  77. };
  78.  
  79. /* Implementation file */
  80. NS_IMPL_ISUPPORTS1(nsDOMCustomEvent, nsIDOMCustomEvent)
  81.  
  82. nsDOMCustomEvent::nsDOMCustomEvent()
  83. {
  84.   /* member initializers and constructor code */
  85. }
  86.  
  87. nsDOMCustomEvent::~nsDOMCustomEvent()
  88. {
  89.   /* destructor code */
  90. }
  91.  
  92. /* void setCurrentTarget (in nsIDOMNode target); */
  93. NS_IMETHODIMP nsDOMCustomEvent::SetCurrentTarget(nsIDOMNode *target)
  94. {
  95.     return NS_ERROR_NOT_IMPLEMENTED;
  96. }
  97.  
  98. /* void setEventPhase (in unsigned short phase); */
  99. NS_IMETHODIMP nsDOMCustomEvent::SetEventPhase(PRUint16 phase)
  100. {
  101.     return NS_ERROR_NOT_IMPLEMENTED;
  102. }
  103.  
  104. /* End of implementation class template. */
  105. #endif
  106.  
  107.  
  108. #endif /* __gen_nsIDOMCustomEvent_h__ */
  109.